import { Entity, Column } from 'typeorm';
import { PublicEntity } from './base/public.entity';

/**
 * 个人信息表
 */
@Entity({ name: 'user_profile' })
export class UserProfileEntity extends PublicEntity {
  @Column({ length: 36, nullable: true, comment: '用户姓名' })
  name: string;

  @Column({ length: 36, nullable: true, comment: '用户昵称' })
  nickname: string;

  @Column({ type: 'tinyint', default: 1, comment: '用户性别: 0女 1男' })
  gender: number;

  @Column({ type: 'text', nullable: true, comment: '用户头像' })
  avatar: string;

  @Column({ type: 'text', nullable: true, comment: '用户地址' })
  address: string;

  @Column({ type: 'text', nullable: true, comment: '用户介绍' })
  introduction: string;

  @Column({ length: 36, comment: '关联用户id' })
  uid: string;

  @Column({ length: 36, nullable: true, comment: '关联企业id' })
  eid: string;
}
